import Vue from "vue";
import Vuex from "vuex";
import state from "./state";
import actions from "./actions";
import mutations from "./mutations";
import getters from "./getters";

import user from "./demoModule/user/index.js";
import routeManage from "./gateway/routeManage/index.js";
import rateLimitManage from "./gateway/rateLimitManage/index.js";

Vue.use(Vuex);
export default new Vuex.Store({
  state,
  actions,
  mutations,
  getters,
  devtools: window.RPConfig.devtools,
  modules: {
    user,
    routeManage,
    rateLimitManage
  }
});
